<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <div style="height: 5000px;">
        <div style="position: relative; width: 300px; height: 400px">
            <div style="position: absolute; bottom: 10px; right: 10px">
                absolute
            </div>
        </div>
        <div style="position: fixed;bottom: 20px; right: 30px">
            fixed
        </div>
    </div>
</body>
</html>